package com.lzh.farmersshop.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Userinfo)实体类
 *
 * @author makejava
 * @since 2024-01-04 15:37:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Userinfo implements Serializable {
    private static final long serialVersionUID = 116180376490321550L;
    /**
     * 用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 手机号
     */
    private String phone;
    /**
     * 密码
     */
    private String password;
    /**
     * 姓名
     */
    private String username;
    /**
     * 生日
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    /**
     * 1正常2已删除
     */
    private Integer isdelete;


}
